<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="admin_header.jsp"%>
<%@ include file="admin_sidebar.jsp"%>

<div class="content">
   <div class="form-content">
       <form action="AdminUserAddServlet" method="post" class="user-info">
           <div class="user-info-item">
               <div class="user-info-title">用户名:</div>
               <input type="text" class="user-info-content" name="username" required>
           </div>
           <div class="user-info-item">
               <div class="user-info-title">密码:</div>
               <input type="password" class="user-info-content" name="password" required>
           </div>
           <div class="user-info-item">
               <div class="user-info-title">邮箱:</div>
               <input type="email" class="user-info-content" name="email" required>
           </div>
           <div class="user-info-item">
               <div class="user-info-title">身份:</div>
               <select class="user-info-content" name="isAdmin">
                   <option value="true">管理员</option>
                   <option value="false" selected>用户</option>
               </select>
           </div>
           <button type="submit" class="btnn">添加</button>
           <button class="btnn"><a href="UserPageServlet?page=${userPage}">返回</a></button><!-- 假设 edit_profile.jsp 是修改信息的页面 -->
       </form>
   </div>
</div>

<%@ include file="admin_footer.jsp"%>